load("//tools/workspace:pkg_config.bzl", "pkg_config_repository")

def eigen_repository(
        name,
        licenses = [
            "notice",  # BSD-3-Clause
            "reciprocal",  # MPL-2.0
            "unencumbered",  # Public-Domain
        ],
        modname = "eigen3",
        # Keep this version in sync with drake/common/eigen_types.h.
        atleast_version = "3.3.4",
        extra_defines = ["EIGEN_MPL2_ONLY"],
        pkg_config_paths = [],
        homebrew_subdir = "opt/eigen/share/pkgconfig",
        **kwargs):
    pkg_config_repository(
        name = name,
        licenses = licenses,
        modname = modname,
        extra_defines = extra_defines,
        pkg_config_paths = pkg_config_paths,
        **kwargs
    )
